package com.budwk.app.miniapp.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.List;

/**
 * @author wizzer(wizzer.cn) on 2016/7/2.
 */
@Data

@Table("dfxy_enterprise.problem_feedback")
@ApiModel(description = "问题反馈")
public class ProblemFeedback extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@Column
	@Name
	@Comment("ID")
	@ApiModelProperty(description = "ID")
	@ColDefine(type = ColType.VARCHAR, width = 32)
	@PrevInsert(els = {@EL("uuid()")})
	private String id;
	@Column("audit_status")
	@Comment("审核状态")
	@ColDefine(type = ColType.VARCHAR, width = 50)
	private String auditStatus;

	@Column("depts")
	@Comment("处理部门")
	@ColDefine(type = ColType.VARCHAR, width = 200)
	private String depts;
	@Column("name")
	@Comment("企业名称")
	@ColDefine(type = ColType.VARCHAR, width = 200)
	private String name;

	@Column("username")
	@Comment("联系人")
	@ColDefine(type = ColType.VARCHAR, width = 200)
	private String username;
	@Column("problem")
	@Comment("问题描述")
	@ColDefine(type = ColType.TEXT)
	private String problem;
	@Column("tel")
	@Comment("联系电话")
	@ColDefine(type = ColType.VARCHAR, width = 20)
	private String tel;

	@Column("pic")
	@Comment("问题照片")
	@ColDefine(type = ColType.TEXT)
	private String pic;

}
